package com.lap.auth.application.dict.command;

import java.util.List;
import org.hibernate.validator.constraints.Length;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Data
@Schema(description = "批量创建字典")
public class BatchCreateDictCmd {

  @NotBlank(message = "{dict.dictTypeCode.required}")
  @Length(max = 64, message = "{dict.dictTypeCode.max.length}")
  @Schema(description = "字典编码")
  private String dictTypeCode;

  @NotEmpty(message = "{dict.list.required}")
  @Valid
  @Schema(description = "字典列表")
  private List<CreateDictCmd> list;
}
